<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="${pageContext.request.contextPath }/shoppingadmin/favicon.ico">
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/custom.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/style.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="${pageContext.request.contextPath }/shoppingadmin/css/sweetalert.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath }/shoppingadmin/js/kindeditor-min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/shoppingadmin/js/kindeditor.js"></script>
    <style type="text/css">
        .note-editable{
            height: 200px;
        }
    </style>
</head>
<body class="gray-bg">

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>品牌设置</h5>
                </div>
                <div class="ibox-content">
                <!-- 文件上传表单加enctype="multipart/form-data" -->
                    <form class="form-horizontal" id="form1" action="${pageContext.request.contextPath }/Advertis/addadvertis.html"  method="post" enctype="multipart/form-data">
                        <input type="hidden" name="fenlei.id" value="" />

                        <input type="hidden" name="fenlei.lx" value="1" />


                        <input type="hidden" name="fenlei.sjid" value="" />
                        <input type="hidden" name="fenlei.sjmc" value="" />
                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-8" style="color: red;font-size: 15px">

                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-sm-3 control-label"><span style="color:red;">*</span>类别：</label>
                            <div class="col-sm-3">
                                <select id="land" name="land" style="padding-top: 2px;"  class="form-control land" >
                                    
                                </select>
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"><span style="color:red;" >*</span>标题：</label>
                            <div class="col-sm-3" >
                                <input type="text" name="totals"  placeholder=" 请输入品牌名称 " value="" id="totals"  maxlength="40" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label"><span style="color:red;" >*</span>类容：</label>
                            <div class="col-sm-3" >
                                <input type="text" name="content"  placeholder=" 请输入品牌名称 " value="" id="content"  maxlength="40" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label"><span style="color:red;" >*</span>图片：</label>
                            <div class="col-sm-3">
                                <input type="file" class="btn btn-primary"  name="picture" id="picture"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button id="submit" class="btn btn-sm btn-info" type="submit">确认保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<script src="${pageContext.request.contextPath }/shoppingadmin/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/content.js?v=1.0.0"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/sweetalert.min.js"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/advertis.js"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/icheck.min.js"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath }/shoppingadmin/js/messages_zh.min.js"></script>

<script src="${pageContext.request.contextPath }/shoppingadmin/js/form-validate-demo.js"></script>
<script>
</script>
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>
<script>
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="message.content"]', {
            allowFileManager : true,
            filterMode : false,
            width : "670px",
            height : "300px",
            uploadJson : 'tw/jsp/upload_json.jsp',
            fileManagerJson : 'tw/jsp/file_manager_json.jsp'
        });

        K('#selectImg').click(
                function() {
                    editor.loadPlugin('image', function() {
                        editor.plugin.imageDialog({
                            imageUrl : K('#image').val(),
                            clickFn : function(url, title, width, height,
                                               border, align) {
                                K('#image').val(url);
                                $("#img_image").attr("src", url);
                                editor.hideDialog();
                            }
                        });
                    });
                });
    });
</script>

</body>
</html>
